<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tag</title>
      <!-- 文档公共样式 及组件特有示例样式-->
    <link rel="stylesheet"  href="../../docs.css" />
    <!-- 组件样式（全部的） -->
    <link rel="stylesheet" href="../../dist/tdesign.css">

    <link rel="stylesheet" href="https://tdesign.gtimg.com/icon/0.0.3/fonts/index.css">

</head>
<body>
  <div class="tdesign-demo-wrap">

    <!-- 开发者信息 -->
    <div class="tdesign-demo-wrap__name">
      <h1 class="">Tag</h1>
      <p class="tdesign-demo-wrap__info">开发者：angelzou</p>
      <p class="tdesign-demo-wrap__info">创建日期：2020-05-24</p>
      <p class="tdesign-demo-wrap__info">说明：TDesign Tag</p>
    </div>

    <!-- 组件开始区 -->


    <!-- 默认样式 -->
    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">默认</h2>

      <!-- 灰底区域 可多个 -->
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->
        <span class="t-tag t-tag--default">默认</span>
        <!-- 内容区 End-->

      </div>
    </div>

    <!-- 组件状态 -->
    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">主题</h2>

      <!-- 灰底区域 可多个 -->
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->

        <!-- tdesign-demo-block block内容容器，加了上间距 -->
        <div class="tdesign-demo-block">默认（大）：
          <span class="t-tag t-tag--default t-size-l">默认</span>
        </div>
        <div class="tdesign-demo-block">朴素（大）：
          <span class="t-tag t-tag--info t-tag--plain t-size-l">灰色</span>
          <span class="t-tag t-tag--primary t-tag--plain t-size-l">蓝色</span>
          <span class="t-tag t-tag--warning t-tag--plain t-size-l">橙色</span>
          <span class="t-tag t-tag--success t-tag--plain t-size-l">绿色</span>
          <span class="t-tag t-tag--danger t-tag--plain t-size-l">红色</span>
        </div>
        <div class="tdesign-demo-block">浅色（大）：
          <span class="t-tag t-tag--info t-tag--light t-size-l">灰色</span>
          <span class="t-tag t-tag--primary t-tag--light t-size-l">蓝色</span>
          <span class="t-tag t-tag--warning t-tag--light t-size-l">橙色</span>
          <span class="t-tag t-tag--success t-tag--light t-size-l">绿色</span>
          <span class="t-tag t-tag--danger t-tag--light t-size-l">红色</span>
        </div>
        <div class="tdesign-demo-block">深色（大）：
          <span class="t-tag t-tag--info t-size-l">灰色</span>
          <span class="t-tag t-tag--primary t-size-l">蓝色</span>
          <span class="t-tag t-tag--warning t-size-l">橙色</span>
          <span class="t-tag t-tag--success t-size-l">绿色</span>
          <span class="t-tag t-tag--danger t-size-l">红色</span>
        </div>

        <!-- 内容区 End-->

      </div>
    </div>

    <!-- 组件状态 -->
    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">可删除标签</h2>
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->
        <div class="tdesign-demo-block">默认：
          <span class="t-tag t-tag--default t-tag--close">标签一
            <i class="t-icon t-icon-close"></i>
          </span>
        </div>
        <div class="tdesign-demo-block">浅色：
          <span class="t-tag t-tag--primary t-tag--light">标签二
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--success t-tag--light">标签三
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--info t-tag--light">标签四
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--warning t-tag--light">标签五
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--danger t-tag--light">标签六
            <i class="t-icon t-icon-close"></i>
          </span>
        </div>
        <div class="tdesign-demo-block">深色：
          <span class="t-tag t-tag--primary">标签二
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--success">标签三
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--info">标签四
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--warning">标签五
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--danger">标签六
            <i class="t-icon t-icon-close"></i>
          </span>
        </div>
        <div class="tdesign-demo-block">朴素：
          <span class="t-tag t-tag--primary t-tag--plain">标签二
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--success t-tag--plain">标签三
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--info t-tag--plain">标签四
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--warning t-tag--plain">标签五
            <i class="t-icon t-icon-close"></i>
          </span>
          <span class="t-tag t-tag--danger t-tag--plain">标签六
            <i class="t-icon t-icon-close"></i>
          </span>
        </div>
        <!-- 内容区 End-->

      </div>
    </div>

    <!-- 组件类型 -->
    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">可选标签（只针对于默认主题）</h2>
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->
        <span class="t-tag t-tag--check t-tag--default">未选一</span>
        <span class="t-tag t-tag--check t-tag--default t-tag--disabled">未选一</span>
        <span class="t-tag t-tag--check t-tag--default t-tag--checked">选中一</span>
        <!-- 内容区 End-->

      </div>
    </div>
    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">失效标签（只针对于默认主题，不可点击）</h2>
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->
        <span class="t-tag t-tag--default t-tag--disabled">失效标签</span>
        <span class="t-tag t-tag--default t-tag--disabled">
          失效标签
          <i class="t-icon t-icon-close"></i>
        </span>
        <!-- 内容区 End-->

      </div>
    </div>

    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">超长省略文本标签</h2>
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->
        <span style="max-width: 150px;" class="t-tag t-tag--default t-tag--ellipsis"
          title="超长省略文本标签啦啦啦啦">
          <span class="t-tag--text">超长省略文本标签啦啦啦啦</span>
          <i class="t-icon t-icon-close"></i>
        </span>
        <span style="max-width: 150px;" class="t-tag t-tag--primary t-tag--ellipsis"
          title="超长省略文本标签啦啦啦啦">
          <span class="t-tag--text">超长省略文本标签啦啦啦啦</span>
        </span>
        <span style="max-width: 150px;" class="t-tag t-tag--success t-tag--ellipsis"
          title="超长省略文本标签啦啦啦啦">
          <span class="t-tag--text">超长省略文本标签啦啦啦啦</span>
        </span>
        <!-- 内容区 End-->

      </div>
    </div>

    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">图标标签</h2>
      <div class="tdesign-demo-item__body">
        <!-- 内容区 Start-->
        <div class="tdesign-demo-block">
          <span class="t-tag t-tag--default">
            <i class="t-icon t-icon-loading"></i>
            标签一
          </span>
          <span class="t-tag t-tag--default">
            <i class="t-icon t-icon-more"></i>
            标签一
          </span>
          <span class="t-tag t-tag--default">
            <i class="t-icon t-icon-search"></i>
            标签一
          </span>
        </div>
        <div class="tdesign-demo-block">
          <span class="t-tag t-tag--primary">
            <i class="t-icon t-icon-loading"></i>
            标签一
          </span>
          <span class="t-tag t-tag--primary">
            <i class="t-icon t-icon-more"></i>
            标签一
          </span>
          <span class="t-tag t-tag--primary">
            <i class="t-icon t-icon-search"></i>
            标签一
          </span>
        </div>
        <div class="tdesign-demo-block">
          <span class="t-tag t-tag--success">
            <i class="t-icon t-icon-loading"></i>
            标签一
          </span>
          <span class="t-tag t-tag--success">
            <i class="t-icon t-icon-more"></i>
            标签一
          </span>
          <span class="t-tag t-tag--success">
            <i class="t-icon t-icon-search"></i>
            标签一
          </span>
        </div>
        <div class="tdesign-demo-block">
          <span class="t-tag t-tag--warning t-tag--plain">
            <i class="t-icon t-icon-loading"></i>
            标签一
          </span>
          <span class="t-tag t-tag--warning t-tag--plain">
            <i class="t-icon t-icon-more"></i>
            标签一
          </span>
          <span class="t-tag t-tag--warning t-tag--plain">
            <i class="t-icon t-icon-search"></i>
            标签一
          </span>
        </div>
        <!-- 内容区 End-->

      </div>
    </div>

    <!-- 组件尺寸 -->
    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">尺寸</h2>
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->
        <div class="tdesign-demo-block">
          <span class="t-tag t-tag--default t-size-s">标签一 小</span>
          <span class="t-tag t-tag--default">标签一 中</span>
          <span class="t-tag t-tag--default t-size-l">标签一 大</span>
        </div>
        <div class="tdesign-demo-block">
          <span class="t-tag t-tag--primary t-size-s">标签一 小</span>
          <span class="t-tag t-tag--primary">标签一 中</span>
          <span class="t-tag t-tag--primary t-size-l">标签一 大</span>
        </div>
        <!-- 内容区 End-->
      </div>
    </div>

    <div class="tdesign-demo-item">
      <h2 class="tdesign-demo-item__title">形状</h2>
      <div class="tdesign-demo-item__body">

        <!-- 内容区 Start-->
        <div class="tdesign-demo-block">正常：
          <span class="t-tag t-tag--primary">标签一</span>
          <span class="t-tag t-tag--success">标签一</span>
          <span class="t-tag t-tag--info">标签一</span>
        </div>
        <div class="tdesign-demo-block">圆角：
          <span class="t-tag t-tag--primary t-tag--round">标签一</span>
          <span class="t-tag t-tag--success t-tag--round">标签一</span>
          <span class="t-tag t-tag--info t-tag--round">标签一</span>
        </div>
        <div class="tdesign-demo-block">标记：
          <span class="t-tag t-tag--primary t-tag--mark">标签一</span>
          <span class="t-tag t-tag--success t-tag--mark">标签一</span>
          <span class="t-tag t-tag--info t-tag--mark">标签一</span>
        </div>
        <!-- 内容区 End-->
      </div>
    </div>

  </div>

</body>
</html>
